{% extends 'base.html' %}

{% block title %}
编辑页面
{% endblock %}

{% block head %}
    <link rel="stylesheet" href="{{ url_for('static',filename='css/edit.css') }}">
{% endblock %}

{% block body %}
    <form action="{{ url_for('edit',record_id=record.id) }}" method="post">

    <div class="form-group">
        <input type="text" class="form-control" name="record-header" value="{{ record.title }}">
    </div>
    <p class="question-info">
    <span>作者：{{ record.author.username }}</span>
    <span>时间：{{ record.create_time }}</span>
    </p>
    <hr>

    <div class="form-group">
        <textarea name="record-content" rows="5" class="form-control">{{ record.content }}</textarea>
    </div>
    <hr>

    <div class="form-group" style="text-align: right">
        <button class="btn btn-primary" >保存</button>
    </div>

    </form>

{% endblock %}